const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
    port: 8081,
    proxy: {
      //代理跨域  
      '/users': {
        target:'http://localhost:8080',
         changeOrigin: true
       },
       '/categoryunits' :{
        target:'http://localhost:8080',
         changeOrigin: true
       },
       '/experts' :{
        target:'http://localhost:8080',
         changeOrigin: true
       },
       '/projectcategorys':{
        target:'http://localhost:8080',
         changeOrigin: true
       },
       '/projects':{
        target:'http://localhost:8080',
         changeOrigin: true
       },
       '/units' :{
        target:'http://localhost:8080',
         changeOrigin: true
       },
       '/useradmins' :{
        target:'http://localhost:8080',
         changeOrigin: true
       },
       '/usergroups' :{
        target:'http://localhost:8080',
         changeOrigin: true
       }
    }
  }
})
